﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

using BMG.BLL.Classes;
using System.Data;

namespace BMG.BackOffice
{
    /// <summary>
    /// Logique d'interaction pour MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();            
            this.WindowState = WindowState.Normal;
            this.Width = 1100;
            this.Height = 1100;

            BitmapImage bi = new BitmapImage();
            bi.BeginInit();
            bi.UriSource = new Uri("Themes/Images/BMG.JPG", UriKind.Relative);
            bi.EndInit();

            LogoBMG.Source = bi;

            
        }

        /// <summary>
        /// Evenement lors du clic sur un onglet, rafraichissement des données dans les controles
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void TextBlock_MouseDown(object sender, MouseButtonEventArgs e)
        {
            UcCategories.PopulateAndBind();
            UcProduits.PopulateAndBind();
            UcHistorique.PopulateAndBind();
        }



    }
}
